home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 May / Pcwk0597.iso / sybase / starbuck / samples.z / Java WWW Server.txt < prev    next >
Text File  |  1996-12-04  |  2KB  |  61 lines

  1. For a description of the terminology
  2. used in this document, see the chapter in the Optima++ documentation
  3. entitled "Writing Internet Applications".
  4.  
  5. A Server system on the World Wide Web can send the contents of files to a User
  6. system, running a browser.
  7.  
  8. Using the Starbuck Java target template "Java WWW Server Application", you
  9. can write a Server application that can dynamically create the information
  10. that will be displayed by the User system.
  11.  
  12. Your application can use the PrintStream class to output HTML to the
  13. User system, and access common Web Server variables and form contents.
  14. In addition, you can use the power of Java to open sockets on another system,
  15. use JDBC to access a server database, dynamically load other Java classes,
  16. or load/execute native methods from a DLL.
  17.  
  18. Persistent Classes
  19.  
  20. If you are using either the Netscape or Microsoft Servers with the
  21. NSAPI or ISAPI interfaces, your application can be persistent. It will
  22. be loaded into memory once, and can be re-executed repeatedly without
  23. delay. You can use the Session object to maintain information for a user
  24. connection (across multiple requests). Any static class objects in your
  25. application will be available for all requests.
  26.  
  27. Supported Servers:
  28.  
  29. o Microsoft Internet Information Server (IIS) using the ISAPI interface,
  30. with persistent Java execution.
  31.  
  32. o Netscape Commerce and Fasttrack servers, using the NSAPI interface,
  33. with persistent Java execution.
  34.  
  35. o O'Reilly WebSite using the ISAPI emulation (but see restrictions below).
  36.  
  37. o any Web server that supports Common Gateway Interface (CGI) programs.
  38.  
  39. Restrictions:
  40.  
  41. o your server must be running on a Windows 95 or Windows NT system.
  42.  
  43. o if you are using the Common Gateway Interface (CGI), session information is
  44. not available -- your Java application will be reloaded for each request.
  45.  
  46. o if you are using the Microsoft ISAPI interface in the O'Reilly WebSite server,
  47. your Java application will be reloaded for each request. Like CGI, session information
  48. will be unavailable.
  49.  
  50. o the Microsoft Java Virtual Machine (VM) is used to run the application. You
  51. must have installed the Java VM on the server machine.
  52. For Netscape servers, the embedded Netscape Java VM is *not* used.
  53.  
  54. Bugs:
  55.  
  56. o this beta has a bug whereby garbage collection in the Microsoft Java VM will cause
  57. the application to fail. We anticipate a fix shortly.
  58.  
  59.  
  60.  
  61.